package com.anyun.collect.fragments

import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.anyun.collect.ExamSiteModelActivity
import com.anyun.collect.R
import com.anyun.collect.VehicleActivity
import kotlinx.android.synthetic.main.router_fragment.view.*

/**collect
 * Created by lzw on 2019/12/26. 18:11:00
 * 邮箱：632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
class RouterFragment :Fragment(){


    companion object{
        val TAG:String = RouterFragment::class.java.simpleName
        fun newInstance() = RouterFragment()
    }



    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        val binding= inflater.inflate(R.layout.router_fragment,container,false)
        binding.exam_site_btn.setOnClickListener {
            activity?.startActivity(Intent(activity,ExamSiteModelActivity::class.java))
        }
        binding.vehicle_model_btn.setOnClickListener {
            activity?.startActivity(Intent(activity,VehicleActivity::class.java))
        }
        return  binding
    }


}